#include "exitpanel.h"

Exitpanel::Exitpanel() : Panel(false)
{
	isHCentered = true;
	isVCentered = true;
	isAlwaysOnTop = true;
	
	v_width = 300;
	v_height = 86;

	addWidgetText( "askexit", 10, 20, "Are you sure you want to exit?" );
	addWidgetButton( "exit-yes", Vector2i( ((*v_widthP/5)*1)+((*v_widthP/5)/2)-25, 40 ), Vector2i(50, 30), "Yes", Vector2i(15, 19), cmd.gen("quit"), EVENT_NOREPEAT, 0 );
	addWidgetButton( "exit-no",  Vector2i( ((*v_widthP/5)*3)+((*v_widthP/5)/2)-25, 40 ), Vector2i(50, 30), "No", Vector2i(18, 19), cmd.gen("gui_togglepanel", "panel_exit"), EVENT_NOREPEAT, 0 );
}

Exitpanel::~Exitpanel()
{
}
